<html>

<body>
<form name="input" action="PHP.php" method="post">
	
	<fieldset>
	<legend>Edit Personagens</legend>
	Name: Fernandos Vitorius<text type="text" name="name" required="required" value=""><br>
	Hp: <input type="number" name="hp" min="1" max="100" required="required" value=""><br>
	Mana: <input type="number" name="mana" min="0" max="100" required="required" value=""><br>
	Ataque: <input type="number" name="ataque" min="0" max="100" required="required" value=""><br>
	</fieldset>
</form>

<form name="input" action="PHP.php" method="post">
	
	<fieldset>
	<legend>Edit Personagens</legend>
	Name: Merdide Chedeiros <text type="text" name="name" required="required" value=""><br>
	Hp: <input type="number" name="hp" min="1" max="100" required="required" value=""><br>
	Mana: <input type="number" name="mana" min="0" max="100" required="required" value=""><br>
	Ataque: <input type="number" name="ataque" min="0" max="100" required="required" value=""><br>
	</fieldset>
</form>


<form name="input" action="PHP.php" method="post">
	
	<fieldset>
	<legend>Edit Personagens</legend>
	Name: Rudtuttuts<text type="text" name="name" required="required" value=""><br>
	Hp: <input type="number" name="hp" min="1" max="100" required="required" value=""><br>
	Mana: <input type="number" name="mana" min="0" max="100" required="required" value=""><br>
	Ataque: <input type="number" name="ataque" min="0" max="100" required="required" value=""><br>
	</fieldset>
</form>


<form name="input" action="PHP.php" method="post">
	
	<fieldset>
	<legend>Edit Personagens</legend>
	Name: Wiiscuro<text type="text" name="name" required="required" value=""><br>
	Hp: <input type="number" name="hp" min="1" max="100" required="required" value=""><br>
	Mana: <input type="number" name="mana" min="0" max="100" required="required" value=""><br>
	Ataque: <input type="number" name="ataque" min="0" max="100" required="required" value=""><br>
	</fieldset>
</form>

<form name="input" action="PHP.php" method="post">
	
	<fieldset>
	<legend>Edit Personagens</legend>
	Name: Leticius<text type="text" name="name" required="required" value=""><br>
	Hp: <input type="number" name="hp" min="1" max="100" required="required" value=""><br>
	Mana: <input type="number" name="mana" min="0" max="100" required="required" value=""><br>
	Ataque: <input type="number" name="ataque" min="0" max="100" required="required" value=""><br>
	</fieldset>
</form>
<?php

$con=mysqli_connect('localhost', 'root', '', 'PrincesaMarcia');
// Check connection
if (mysqli_connect_errno())
  {
  echo "Failed to connect to MySQL: " . mysqli_connect_error();
  }

$result = mysqli_query($con,"SELECT * FROM fernadovitorius");

while($row = mysqli_fetch_array($result))
  {
  echo $row['hp'] . " " . $row['mana'] . " " . $row['ataque'];
  echo "<br>";
  }
mysqli_close($con);

?>



</body>

</html>
